<?php

/***************************************************************
*  Copyright notice
*
*  (c) 2010 Samuel Scherer <trashcash@gmail.com>, plan-T
*  			
*  All rights reserved
*
*  This script is part of the TYPO3 project. The TYPO3 project is
*  free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.
*
*  The GNU General Public License can be found at
*  http://www.gnu.org/copyleft/gpl.html.
*
*  This script is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

/**
 * Events like lessons or dance balls can be part of a Programm. Like periodic lessons or workshop weekends.
 *
 * @version $Id$
 * @copyright Copyright belongs to the respective authors
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
 */
class Tx_T3dance_Domain_Model_eventProgram extends Tx_Extbase_DomainObject_AbstractEntity {
	
	/**
	 * the title
	 * @var string
	 * @validate NotEmpty
	 */
	protected $title;
	
	/**
	 * the subtitle
	 * @var string
	 * @validate NotEmpty
	 */
	protected $sub_title;
	
	/**
	 * if active booking is displayed
	 * @var boolean
	 */
	protected $active;
	
	/**
	 * Rules for quantity discounts
	 * @var string
	 */
	protected $quantity_discount;
	
	/**
	 * Description of the Class cycle
	 * @var string
	 */
	protected $text;
	
	
	
	/**
	 * Setter for title
	 *
	 * @param string $title the title
	 * @return void
	 */
	public function setTitle($title) {
		$this->title = $title;
	}

	/**
	 * Getter for title
	 *
	 * @return string the title
	 */
	public function getTitle() {
		return $this->title;
	}
	
	/**
	 * Setter for subTitle
	 *
	 * @param string $subTitle the subtitle
	 * @return void
	 */
	public function setSubTitle($subTitle) {
		$this->subTitle = $subTitle;
	}

	/**
	 * Getter for subTitle
	 *
	 * @return string the subtitle
	 */
	public function getSubTitle() {
		return $this->subTitle;
	}
	
	/**
	 * Setter for active
	 *
	 * @param boolean $active if active booking is displayed
	 * @return void
	 */
	public function setActive($active) {
		$this->active = $active;
	}

	/**
	 * Getter for active
	 *
	 * @return boolean if active booking is displayed
	 */
	public function getActive() {
		return $this->active;
	}
	
	/**
	 * Returns the boolean state of active
	 *
	 * @return bool The state of active
	 */
	public function isActive() {
		$this->getActive();
	}
	
	/**
	 * Setter for quantityDiscount
	 *
	 * @param string $quantityDiscount Rules for quantity discounts
	 * @return void
	 */
	public function setQuantityDiscount($quantityDiscount) {
		$this->quantityDiscount = $quantityDiscount;
	}

	/**
	 * Getter for quantityDiscount
	 *
	 * @return string Rules for quantity discounts
	 */
	public function getQuantityDiscount() {
		return $this->quantityDiscount;
	}
	
	/**
	 * Setter for text
	 *
	 * @param string $text Description of the Class cycle
	 * @return void
	 */
	public function setText($text) {
		$this->text = $text;
	}

	/**
	 * Getter for text
	 *
	 * @return string Description of the Class cycle
	 */
	public function getText() {
		return $this->text;
	}
	
}
?>